<?php
 Session_Start () ;
 Include ("../../include/garennes.cfg") ;
 Include ("../../include/init.php") ;
 Include ("../../include/module_trombinoscope.cfg") ;
 Include ("../../include/module_trombinoscope.php") ;
 Include ("../include/config.inc") ;
 verif_droits ($droit_courant, $_SESSION ["code"]) ;
 
 //Include ("../../include/var_temp.inc") ;
 
 $requete = var_courante ("requete", 0, null) ;
 
 If (IsSet ($requete))
  {
   $type = var_courante ("type", 0, 0) ;
   Switch ($requete)
    {
     // Insertion d'un jour de passage
     Case 0 : $annee = var_courante ("annee", 0, "0000") ; $mois = var_courante ("mois", 0, "00") ; $jour = var_courante ("jour", 0, "00") ;
	      $h_m_d = var_courante ("h_m_d", 0, "0000") ; $m_m_d = var_courante ("m_m_d", 0, "00") ; $s_m_d = var_courante ("s_m_d", 0, "00") ;
	      $h_m_f = var_courante ("h_m_f", 0, "0000") ; $m_m_f = var_courante ("m_m_f", 0, "00") ; $s_m_f = var_courante ("s_m_f", 0, "00") ;
	      $h_pm_d = var_courante ("h_pm_d", 0, "0000") ; $m_pm_d = var_courante ("m_pm_d", 0, "00") ; $s_pm_d = var_courante ("s_pm_d", 0, "00") ;
	      $h_pm_f = var_courante ("h_pm_f", 0, "0000") ; $m_pm_f = var_courante ("m_pm_f", 0, "00") ; $s_pm_f = var_courante ("s_pm_f", 0, "00") ;
	      $h_am_d = var_courante ("h_am_d", 0, "0000") ; $m_am_d = var_courante ("m_am_d", 0, "00") ; $s_am_d = var_courante ("s_am_d", 0, "00") ;
	      $h_pam_d = var_courante ("h_pam_d", 0, "0000") ; $m_pam_d = var_courante ("m_pam_d", 0, "00") ; $s_pam_d = var_courante ("s_pam_d", 0, "00") ;
	      $h_pam_f = var_courante ("h_pam_f", 0, "0000") ; $m_pam_f = var_courante ("m_pam_f", 0, "00") ; $s_pam_f = var_courante ("s_pam_f", 0, "00") ;
	      $h_am_f = var_courante ("h_am_f", 0, "0000") ; $m_am_f = var_courante ("m_am_f", 0, "00") ; $s_am_f = var_courante ("s_am_f", 0, "00") ;
              $ok = SQL_commande ("INSERT INTO tromb_jours_passage (date,heure_matin_debut,heure_pause_matin_debut,heure_pause_matin_fin,heure_matin_fin,
                                                                    heure_apres_midi_debut,heure_pause_apres_midi_debut,heure_pause_apres_midi_fin,heure_apres_midi_fin,type)
                                   VALUES ('".$annee."-".$mois."-".$jour."','".$h_m_d.":".$m_m_d.":".$s_m_d."','".$h_pm_d.":".$m_pm_d.":".$s_pm_d."',
		                           '".$h_pm_f.":".$m_pm_f.":".$s_pm_f."','".$h_m_f.":".$m_m_f.":".$s_m_f."','".$h_am_d.":".$m_am_d.":".$s_am_d."',
				           '".$h_pam_d.":".$m_pam_d.":".$s_pam_d."','".$h_pam_f.":".$m_pam_f.":".$s_pam_f."','".$h_am_f.":".$m_am_f.":".$s_am_f."','".$type."')", $id_sql) ;
              $ok = SQL_commande ("UPDATE tromb_passages SET date='0000-00-00',heure_debut='00:00:00',heure_fin='00:00:00'", $id_sql) ;
	      $ok = SQL_commande ("UPDATE tromb_utilisateurs SET date='0000-00-00',heure_debut='00:00:00',heure_fin='00:00:00'", $id_sql) ;
	      $requete = 0 ;
              Break ;
     // Effacement d'un jour de passage
     Case 1 : $id_tromb_jour_passage = var_courante ("id_tromb_jour_passage", 0, 0) ;
              $ok = SQL_commande ("DELETE FROM tromb_jours_passage WHERE id_tromb_jour_passage='".$id_tromb_jour_passage."' LIMIT 1", $id_sql) ;
              $ok = SQL_commande ("UPDATE tromb_passages SET date='0000-00-00',heure_debut='00:00:00',heure_fin='00:00:00'", $id_sql) ;
	      $ok = SQL_commande ("UPDATE tromb_utilisateurs SET date='0000-00-00',heure_debut='00:00:00',heure_fin='00:00:00'", $id_sql) ;
	      $requete = 0 ;
	      Break ;
     // Debut de modification
     Case 2 : $id_tromb_jour_passage = var_courante ("id_tromb_jour_passage", 0, 0) ;
              $resultat = SQL_commande ("SELECT * FROM tromb_jours_passage WHERE id_tromb_jour_passage='".$id_tromb_jour_passage."' LIMIT 1", $id_sql) ;
              UnSet ($defaut) ;
              $defaut = SQL_tableau_associatif ($resultat, "") ;
	      $requete = 3 ;
              Break ;
     // Fin de modification
     Case 3 : $id_tromb_jour_passage = var_courante ("id_tromb_jour_passage", 0, 0) ;
              $annee = var_courante ("annee", 0, "0000") ; $mois = var_courante ("mois", 0, "00") ; $jour = var_courante ("jour", 0, "00") ;
	      $h_m_d = var_courante ("h_m_d", 0, "0000") ; $m_m_d = var_courante ("m_m_d", 0, "00") ; $s_m_d = var_courante ("s_m_d", 0, "00") ;
	      $h_m_f = var_courante ("h_m_f", 0, "0000") ; $m_m_f = var_courante ("m_m_f", 0, "00") ; $s_m_f = var_courante ("s_m_f", 0, "00") ;
	      $h_pm_d = var_courante ("h_pm_d", 0, "0000") ; $m_pm_d = var_courante ("m_pm_d", 0, "00") ; $s_pm_d = var_courante ("s_pm_d", 0, "00") ;
	      $h_pm_f = var_courante ("h_pm_f", 0, "0000") ; $m_pm_f = var_courante ("m_pm_f", 0, "00") ; $s_pm_f = var_courante ("s_pm_f", 0, "00") ;
	      $h_am_d = var_courante ("h_am_d", 0, "0000") ; $m_am_d = var_courante ("m_am_d", 0, "00") ; $s_am_d = var_courante ("s_am_d", 0, "00") ;
	      $h_pam_d = var_courante ("h_pam_d", 0, "0000") ; $m_pam_d = var_courante ("m_pam_d", 0, "00") ; $s_pam_d = var_courante ("s_pam_d", 0, "00") ;
	      $h_pam_f = var_courante ("h_pam_f", 0, "0000") ; $m_pam_f = var_courante ("m_pam_f", 0, "00") ; $s_pam_f = var_courante ("s_pam_f", 0, "00") ;
	      $h_am_f = var_courante ("h_am_f", 0, "0000") ; $m_am_f = var_courante ("m_am_f", 0, "00") ; $s_am_f = var_courante ("s_am_f", 0, "00") ;
              $ok = SQL_commande ("UPDATE tromb_jours_passage SET date='".$annee."-".$mois."-".$jour."',
                                                                  heure_matin_debut='".$h_m_d.":".$m_m_d.":".$s_m_d."',
							          heure_pause_matin_debut='".$h_pm_d.":".$m_pm_d.":".$s_pm_d."',
                                                                  heure_pause_matin_fin='".$h_pm_f.":".$m_pm_f.":".$s_pm_f."',
							          heure_matin_fin='".$h_m_f.":".$m_m_f.":".$s_m_f."',
							          heure_apres_midi_debut='".$h_am_d.":".$m_am_d.":".$s_m_d."',
							          heure_pause_apres_midi_debut='".$h_pam_d.":".$m_pam_d.":".$s_pam_d."',
							          heure_pause_apres_midi_fin='".$h_pam_f.":".$m_pam_f.":".$s_pam_f."',
							          heure_apres_midi_fin='".$h_am_f.":".$m_am_f.":".$s_am_f."'
 			            WHERE id_tromb_jour_passage='".$id_tromb_jour_passage."' LIMIT 1", $id_sql) ;
              $ok = SQL_commande ("UPDATE tromb_passages SET date='0000-00-00',heure_debut='00:00:00',heure_fin='00:00:00'", $id_sql) ;
	      $ok = SQL_commande ("UPDATE tromb_utilisateurs SET date='0000-00-00',heure_debut='00:00:00',heure_fin='00:00:00'", $id_sql) ;
	      $requete = 0 ;
              Break ;
    }
  }
 Else { $requete = 0 ; }
 If ($requete == 0)
  {
   $defaut ["heure_matin_debut"] = "08:00:00" ;
   $defaut ["heure_matin_fin"] = "12:00:00" ;
   $defaut ["heure_pause_matin_debut"] = "09:50:00" ;
   $defaut ["heure_pause_matin_fin"] = "10:00:00" ;
   $defaut ["heure_apres_midi_debut"] = "13:30:00" ;
   $defaut ["heure_apres_midi_fin"] = "18:00:00" ;
   $defaut ["heure_pause_apres_midi_debut"] = "15:20:00" ;
   $defaut ["heure_pause_apres_midi_fin"] = "15:40:00" ;
   $defaut ["type"] = 0 ;
  }
 
 $resultats = SQL_commande ("SELECT * FROM menus WHERE numero='".$droit_courant."' AND ordre='0' LIMIT 1", $id_sql) ;
 $l = SQL_tableau_associatif ($resultats, "") ; 
 Echo "<HTML><HEAD>" ;
 entete_html ("Garennes", "travail", 1) ;
 Echo styles ("none", "none", "none", $l ["lien"], "none") ;
 Include ("./jours_passage.js") ;
 Echo "</HEAD>" ;
 
 Echo "<BODY BACKGROUND=\"../images/fond.png\" TEXT=\"#000000\" onContextMenu=\"return false\">" ;
 Echo "<CENTER><FONT COLOR=\"#0000FF\"><B>D&eacute;finition&nbsp;des&nbsp;jours&nbsp;de&nbsp;passage.</B></FONT></CENTER>" ;
 
 If ($requete == 0)
  {
   For ($type = 0 ; $type <= 1 ; $type++)
    {
     $resultat = SQL_commande ("SELECT * FROM tromb_jours_passage WHERE type='".$type."' ORDER BY date,heure_matin_debut,heure_apres_midi_debut", $id_sql) ;
     If (SQL_nbr_lignes ($resultat) > 0)
      {
       Echo "<TABLE ALIGN=\"CENTER\" BORDER=\"1\" CELLSPACING=\"0\" CELLPADDING=\"0\" BGCOLOR=\"".$l ["couleur_fond"]."\" STYLE=\"border:1px solid #000000;border-collapse:collapse\">" ;
       Echo "<TR BGCOLOR=\"".$l ["lien"]."\"><TD COLSPAN=\"6\" ALIGN=\"CENTER\">&nbsp;Jours&nbsp;de&nbsp;passage&nbsp;d&eacute;j&agrave;&nbsp;d&eacute;finis&nbsp;pour&nbsp;" ;
       If ($type == 0) { Echo "les&nbsp;classes" ; } Else { Echo "le&nbsp;personnel" ; }
       Echo ".&nbsp;</TD></TR>" ;
       Echo "<TR BGCOLOR=\"".$l ["lien"]."\">" ;
       Echo "<TD></TD>" ;
       Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\"><B>Jour</B></FONT>&nbsp;</TD>" ;
       Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\"><B>Matin</B></FONT>&nbsp;</TD>" ;
       Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\"><B>Pause&nbsp;du&nbsp;matin</B></FONT>&nbsp;</TD>" ;
       Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\"><B>Apr&egrave;s-midi</B></FONT>&nbsp;</TD>" ;
       Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\"><B>Pause&nbsp;de&nbsp;l'apr&egrave;s-midi</B></FONT>&nbsp;</TD>" ;
       Echo "</TR>" ;
  
       For ($i = 0 ; $i < SQL_nbr_lignes ($resultat) ; $i++)
        {
         $ligne = SQL_tableau_associatif ($resultat, "") ;
         Echo "<TR" ;
         If ($i%2 == 0) { Echo " BGCOLOR=\"".$l ["nom"]."\"" ; }
         Echo ">" ;
         Echo "<TD><TABLE WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\"><TR>" ;
         
         Echo "<FORM ACTION=\"./jours_passage.php\" METHOD=\"POST\">" ;
         Echo "<TD>" ;
         Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"code\" VALUE=\"".$_SESSION ["code"]."\">" ;
         Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"id_tromb_jour_passage\" VALUE=\"".$ligne ["id_tromb_jour_passage"]."\">" ;
         Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"requete\" VALUE=\"2\">" ;
         Echo "<INPUT TYPE=\"IMAGE\" SRC=\"../images/edition.png\" TITLE=\"&Eacute;diter ce jour de passage\" BORDER=\"0\">" ;
         Echo "</TD>" ;
         Echo "</FORM>" ;
         
         $d = Explode ("-", $ligne ["date"]) ;
         Echo "<FORM ACTION=\"./jours_passage.php\" METHOD=\"POST\" onSubmit=\"return valide('".$d [2]." ".$nom_mois [(integer)$d [1]]." ".$d [0]."')\">" ;
         Echo "<TD>" ;
         Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"code\" VALUE=\"".$_SESSION ["code"]."\">" ;
         Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"id_tromb_jour_passage\" VALUE=\"".$ligne ["id_tromb_jour_passage"]."\">" ;
         Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"requete\" VALUE=\"1\">" ;
         Echo "<INPUT TYPE=\"IMAGE\" SRC=\"../images/effacer.png\" TITLE=\"Supprimer ce jour de passage\" BORDER=\"0\">" ;
         Echo "</TD></FORM>" ;
         
         Echo "</TR></TABLE></TD>" ;
         $d = Explode ("-", $ligne ["date"]) ;
         Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\">".$d [2]."&nbsp;".$nom_mois [(integer)$d [1]]."&nbsp;".$d [0]."</FONT>&nbsp;</TD>" ;
	     // MATIN
         If ($ligne ["heure_matin_debut"] != $ligne ["heure_matin_fin"])
          {
           $d1 = Explode (":", $ligne ["heure_matin_debut"]) ;
           $d2 = Explode (":", $ligne ["heure_matin_fin"]) ;
           Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\">".$d1 [0]."H".$d1 [1]."&nbsp;&agrave;&nbsp;".$d2 [0]."H".$d2 [1]."</FONT>&nbsp;</TD>" ;
	       // PAUSE
	       If ($ligne ["heure_pause_matin_debut"] != $ligne ["heure_pause_matin_fin"])
            {
             $d1 = Explode (":", $ligne ["heure_pause_matin_debut"]) ;
             $d2 = Explode (":", $ligne ["heure_pause_matin_fin"]) ;
             Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\">".$d1 [0]."H".$d1 [1]."&nbsp;&agrave;&nbsp;".$d2 [0]."H".$d2 [1]."</FONT>&nbsp;</TD>" ;
            }
           Else { Echo "<TD></TD>" ; }
          }
         Else { Echo "<TD colspan=\"2\"></TD>" ; }
         // APRES-MIDI
         If ($ligne ["heure_apres_midi_debut"] != $ligne ["heure_apres_midi_fin"])
          {
           $d1 = Explode (":", $ligne ["heure_apres_midi_debut"]) ;
           $d2 = Explode (":", $ligne ["heure_apres_midi_fin"]) ;
           Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\">".$d1 [0]."H".$d1 [1]."&nbsp;&agrave;&nbsp;".$d2 [0]."H".$d2 [1]."</FONT>&nbsp;</TD>" ;
	       // PAUSE
	       If ($ligne ["heure_pause_apres_midi_debut"] != $ligne ["heure_pause_apres_midi_fin"])
            {
             $d1 = Explode (":", $ligne ["heure_pause_apres_midi_debut"]) ;
             $d2 = Explode (":", $ligne ["heure_pause_apres_midi_fin"]) ;
             Echo "<TD ALIGN=\"CENTER\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\">".$d1 [0]."H".$d1 [1]."&nbsp;&agrave;&nbsp;".$d2 [0]."H".$d2 [1]."</FONT>&nbsp;</TD>" ;
            }
           Else { Echo "<TD></TD>" ; }
          }
         Else { Echo "<TD colspan\"2\"></TD>" ; }
         Echo "</TR>" ;
        } 
       Echo "</TABLE><BR>" ;
      }
     Else
      {
      }
    }
  }
  
 Echo "<FORM ACTION=\"./jours_passage.php\" METHOD=\"POST\">" ;
 Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"requete\" VALUE=\"".$requete."\">" ;
 Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"id_tromb_jour_passage\" VALUE=\"".$defaut ["id_tromb_jour_passage"]."\">" ;
 Echo "<TABLE ALIGN=\"CENTER\" BORDER=\"1\" CELLSPACING=\"0\" CELLPADDING=\"0\" BGCOLOR=\"".$l ["couleur_fond"]."\" STYLE=\"border:1px solid #000000;border-collapse:collapse\">" ;
 If ($requete == 0)
  {
   Echo "<TR BGCOLOR=\"".$l ["lien"]."\"><TD ALIGN=\"CENTER\"><FONT SIZE=\"".$l ["titre"]."\">&nbsp;<B>Ajouter&nbsp;un&nbsp;jour&nbsp;de&nbsp;passage</B>&nbsp;</FONT></TD></TR>" ;
  }
 Else
  {
   Echo "<TR BGCOLOR=\"".$l ["lien"]."\"><TD ALIGN=\"CENTER\"><FONT SIZE=\"".$l ["titre"]."\">&nbsp;<B><BLINK>Modifier</BLINK>&nbsp;un&nbsp;jour&nbsp;de&nbsp;passage</B>&nbsp;</FONT></TD></TR>" ;
  }
 Echo "<TR><TD><TABLE WIDTH=\"100%\" CELLSPACING=\"0\" CELLPADDING=\"2\">" ;
 Echo "<TR><TD COLSPAN=\"2\">&nbsp;<br>Si&nbsp;l'heure&nbsp;de&nbsp;d&eacute;but&nbsp;et&nbsp;heure&nbsp;de&nbsp;fin&nbsp;identiques&nbsp;alors&nbsp;annulation&nbsp;de&nbsp;la&nbsp;plage&nbsp;horaire.<br></TD></TR>" ;
 
 Echo "<TR><TD ALIGN=\"RIGHT\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\"><B>Type&nbsp;de&nbsp;trombinoscope</B></FONT>&nbsp;</TD>" ;
 If ($requete == 0)
  {
   Echo "<TD><SELECT NAME=\"type\">" ;
   For ($type = 0 ; $type <= 1 ; $type++)
    {
     Echo "<OPTION VALUE=\"".$type."\"" ;
     If ($defaut ["type"] == $type) { Echo " SELECTED" ; }
     If ($type == 0) { Echo ">des Classes" ; } Else { Echo ">du Personnel" ; }
     Echo "</OPTION>" ;
    }
   Echo "</SELECT>&nbsp;</TD>" ;   
  }
 Else
  {
   Echo "<TD><FONT SIZE=\"".$l ["titre"]."\">" ;
   If ($defaut ["type"] == 0) { Echo "des Classes" ; } Else { Echo "du Personnels" ; }
   Echo "</FONT>&nbsp;</TD>" ;
  }
 Echo "</TR>" ;
 
 Echo "<TR><TD ALIGN=\"RIGHT\">&nbsp;<FONT SIZE=\"".$l ["titre"]."\"><B>Jour&nbsp;de&nbsp;passage</B></FONT>&nbsp;</TD>" ;
 $d1 = Explode ("-", $defaut ["date"]) ;
 Echo "<TD>".saisie_date ((integer)$d1 [2],(integer)$d1 [1],(integer)$d1 [0],(integer)$d1 [0]-2,4,"jour","mois","annee")."</TD>" ;
 Echo "</TR>" ;

 Echo "<TR BGCOLOR=\"".$l ["nom"]."\">" ;
 Echo "<TD ALIGN=\"RIGHT\"><FONT SIZE=\"".$l ["titre"]."\"><B>&nbsp;Matin&nbsp;de&nbsp;</B></FONT></TD>" ;
 $d1 = Explode (":", $defaut ["heure_matin_debut"]) ;
 $d2 = Explode (":", $defaut ["heure_matin_fin"]) ;
 Echo "<TD><FONT SIZE=\"".$l ["titre"]."\">".saisie_heure ((integer)$d1 [0],(integer)$d1 [1],0,0,24,0,59,-1,-1,"h_m_d","m_m_d","s_m_d")."&nbsp;&agrave;&nbsp;" ;
 Echo saisie_heure ((integer)$d2 [0],(integer)$d2 [1],0,0,24,0,59,-1,-1,"h_m_f","m_m_f","s_m_f")."&nbsp;</FONT></TD>" ;
 Echo "</TR>" ;

 Echo "<TR>" ;
 Echo "<TD ALIGN=\"RIGHT\"><FONT SIZE=\"".$l ["titre"]."\"><B>&nbsp;Pause&nbsp;du&nbsp;matin&nbsp;de&nbsp;</B></FONT></TD>" ;
 $d1 = Explode (":", $defaut ["heure_pause_matin_debut"]) ;
 $d2 = Explode (":", $defaut ["heure_pause_matin_fin"]) ;
 Echo "<TD><FONT SIZE=\"".$l ["titre"]."\">".saisie_heure ((integer)$d1 [0],(integer)$d1 [1],0,0,24,0,59,-1,-1,"h_pm_d","m_pm_d","s_pm_d")."&nbsp;&agrave;&nbsp;" ;
 Echo saisie_heure ((integer)$d2 [0],(integer)$d2 [1],0,0,24,0,59,-1,-1,"h_pm_f","m_pm_f","s_pm_f")."&nbsp;</FONT></TD>" ;
 
 Echo "</TR>" ;
 
 Echo "<TR BGCOLOR=\"".$l ["nom"]."\">" ;
 Echo "<TD ALIGN=\"RIGHT\"><FONT SIZE=\"".$l ["titre"]."\"><B>&nbsp;Apr&egrave;s-midi&nbsp;de&nbsp;</B></FONT></TD>" ;
 $d1 = Explode (":", $defaut ["heure_apres_midi_debut"]) ;
 $d2 = Explode (":", $defaut ["heure_apres_midi_fin"]) ;
 Echo "<TD><FONT SIZE=\"".$l ["titre"]."\">".saisie_heure ((integer)$d1 [0],(integer)$d1 [1],0,0,24,0,59,-1,-1,"h_am_d","m_am_d","s_am_d")."&nbsp;&agrave;&nbsp;" ;
 Echo saisie_heure ((integer)$d2 [0],(integer)$d2 [1],0,0,24,0,59,-1,-1,"h_am_f","m_am_f","s_am_f")."&nbsp;</FONT></TD>" ;
 Echo "</TR>" ;
 
 Echo "<TR>" ;
 Echo "<TD ALIGN=\"RIGHT\"><FONT SIZE=\"".$l ["titre"]."\"><B>&nbsp;Pause&nbsp;de&nbsp;l'apr&egrave;s-midi&nbsp;de&nbsp;</B></FONT></TD>" ;
 $d1 = Explode (":", $defaut ["heure_pause_apres_midi_debut"]) ;
 $d2 = Explode (":", $defaut ["heure_pause_apres_midi_fin"]) ;
 Echo "<TD><FONT SIZE=\"".$l ["titre"]."\">".saisie_heure ((integer)$d1 [0],(integer)$d1 [1],0,0,24,0,59,-1,-1,"h_pam_d","m_pam_d","s_pam_d")."&nbsp;&agrave;&nbsp;" ;
 Echo saisie_heure ((integer)$d2 [0],(integer)$d2 [1],0,0,24,0,59,-1,-1,"h_pam_f","m_pam_f","s_pam_f")."&nbsp;</FONT></TD>" ;
 Echo "</TR>" ;
 
 Echo "<TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>" ;
 Echo "<TR><TD COLSPAN=\"2\" ALIGN=\"CENTER\"><INPUT TYPE=\"IMAGE\" SRC=\"../images/valider.png\" ALT=\"Ajouter/Modifier un jour de passage\" VALUE=\"VaLiDeR\" BORDER=\"0\"></TD></TR>" ;
 Echo "</TABLE></TD></TR></TABLE>" ;
 Echo "</FORM>" ;
 Echo "</BODY></HTML>" ;
?>